<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 14:53
 */

namespace util\validate\rules;

/**
 * 验证必须是一个合法的日期格式
 *
 * Class Date
 * @package validate\rules
 */
class Date extends BaseRule
{
    public function verify()
    {
        $val = strtotime($this->value);

        if (!$val) {
            return false;
        }

        return true;
    }
}